/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fh.controller;

import fh.component.DataSource;
import fh.model.Round;

/**
 *
 * @author Bart
 */
public class RoundController {

    public boolean insertRound(Round r) {
        String insertRoundQuery = "INSERT INTO `round` (round_number, event_id) values("
                + r.getRound_number() + ","
                + r.getEvent_id() + ")";

        DataSource.executeUpdateQuery(insertRoundQuery);
        return true;
    }
}
